package cn.dakaqi.services;

import cn.dakaqi.entities.BaseAddress;
import cn.dakaqi.utils.exception.ServiceRuntimeException;

import java.util.List;

/**
 * Copyright: Copyright (c)2016
 * Company: 志愿者打卡器(www.dakaqi.cn)
 * 类名称: BaseAddressService <br>
 * 类描述: <br>
 *
 * @author: ChunYang.Zhang
 * @since: 2016/9/27 11:17
 * @version: 1.0.0
 */
public interface BaseAddressService
{
    public void saveBaseAddress(BaseAddress baseAddress)throws ServiceRuntimeException;
    public void delById(Long id)throws ServiceRuntimeException;
    public void updateBaseAddress(BaseAddress baseAddress)throws ServiceRuntimeException;
    public BaseAddress findByUserId(Long userId)throws ServiceRuntimeException;
    public BaseAddress findOne(Long baseAddressId)throws ServiceRuntimeException;
    public List<BaseAddress> findAll()throws ServiceRuntimeException;
    public List<BaseAddress> findByAddressLike(String area)throws ServiceRuntimeException;
}
